package com.cf.domain.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;

@Data
@TableName("t_team")
public class Team {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("user_id")
    private Long userId;

    @TableField("team_name")
    private String teamName;

    @TableField("plan_url")
    private String plan;

    @TableField("video_url")
    private String video;

    private int coach;

    @TableField(exist = false)
    private List<TeamMember> teamMembers;

    public String getCoachName(){
        return this.coach == 1?"是":"否";
    }
}
